enum get all values C#

37

enum get all values C# -

//typed
var values = Enum.GetValues(typeof(Foos)).Cast<Foos>()

c# iterate enum -

var values = Enum.GetValues(typeof(Foos));

Comments

Submit
0 Comments